Application runtime for cloud-based analytics engine

ABSTRACT

A method for accessing data stored in a database may include receiving, at an application, a request to load a data story that includes a software widget configured to create, based on a portion of data stored in a database coupled with a cloud-based analytics engine, a data presentation providing a visual representation of the portion of data. In response to the request to load the data story, a scripting engine associated with the application may execute a first programming code associated with the software widget. The first programming code may be executed to retrieve, from the cloud-based analytics engine, visualization data for rendering the data presentation. An in-app web browser associated with the application may execute a second programming code associated with the software widget. The second programming code may be executed to render, based on the visualization data retrieved from the cloud-based analytics engine, the data presentation.

TECHNICAL FIELD

The subject matter described herein relates generally to databaseprocessing and more specifically to runtime support for an applicationinteracting with a cloud-based analytics engine operating on data storedin a database.

BACKGROUND

A database may be configured to store a plurality of electronic datarecords. These data records may be organized, in accordance with adatabase schema, into various database objects including, for example,one or more database tables. The database is coupled with a databasemanagement system (DBMS), which may be configured to support a varietyof database operations for accessing the data records stored in thedatabase. These database operations may include, for example, structuredquery language (SQL) queries and/or the like.

SUMMARY

Systems, methods, and articles of manufacture, including computerprogram products, are provided for furnishing runtime support for anapplication interacting with a cloud-based analytics engine. In oneaspect, there is provided a system. The system may include at least onedata processor and at least one memory. The at least one memory maystore instructions that result in operations when executed by the atleast one data processor. The operations may include: receiving, at anapplication, a request to load a data story, the data story including asoftware widget configured to create, based at least on a portion ofdata stored in a database coupled with a cloud-based analytics engine, adata presentation providing a visual representation of at least theportion of data; in response to the request to load the data story,executing, by a scripting engine associated with the application, afirst programming code associated with the software widget, the firstprogramming code being executed to retrieve, from the cloud-basedanalytics engine, visualization data for rendering the datapresentation; and executing, by an in-app web browser associated withthe application, a second programming code associated with the softwarewidget, the second programming code being executed to render, based atleast on the visualization data retrieved from the cloud-based analyticsengine, the data presentation.

In some variations, one or more features disclosed herein including thefollowing features may optionally be included in any feasiblecombination. The scripting engine may execute the first programming codeon a first thread of the application. The in-app web browser may executethe second programming code on a second thread of the application. Thesecond thread may be a main thread of the application. The main threadof the application may be configured to render one or more userinterface elements of the application and respond to interactions withthe one or more user interface elements. The first thread may be abackground thread of the application. The first programming code may beexecuted on the background thread of the application instead of the mainthread of the application to at least prevent the application from beingrendered unresponsive due to the retrieval of the visualization data.

In some variations, the first programming code and the secondprogramming code may be executed on different threads to at least enablethe retrieval of the visualization data to be performed at leastpartially in parallel with the rendering of the data presentation.

In some variations, the application may be deployed at a mobile device.The scripting engine may be associated with a programming language thatis non-native to the mobile device. The mobile device may include asoftware development kit configured to provide an interface between thescripting engine and one or more components of the mobile deviceimplemented in a native programming language of the mobile device.

In some variations, the cloud-based analytics engine may be configuredto provide, to the mobile device, access to the data stored in thedatabase by at least providing, to the mobile device, the visualizationdata for rendering the data presentation.

In some variations, the scripting engine may include the firstprogramming code associated with the software widget and a thirdprogramming code associated with another software widget. The scriptingengine may be further configured to select for execution, based at leaston the request to load the data story that includes the software widgetbut not the other software widget, the first programming code and notthe third programming code.

In some variations, the first software widget may be a transientapplication and/or an auxiliary application.

In some variations, the visualization data retrieved from thecloud-based analytics engine may be encoded in JavaScript ObjectNotation (JSON), Hypertext Markup Language (HTML), and/or ExtensibleMarkup Language (XML).

In another aspect, there is provided a method for furnishing runtimesupport for an application interacting with a cloud-based analyticsengine stored in a database. The method may include: receiving, at anapplication, a request to load a data story, the data story including asoftware widget configured to create, based at least on a portion ofdata stored in a database coupled with a cloud-based analytics engine, adata presentation providing a visual representation of at least theportion of data; in response to the request to load the data story,executing, by a scripting engine associated with the application, afirst programming code associated with the software widget, the firstprogramming code being executed to retrieve, from the cloud-basedanalytics engine, visualization data for rendering the datapresentation; and executing, by an in-app web browser associated withthe application, a second programming code associated with the softwarewidget, the second programming code being executed to render, based atleast on the visualization data retrieved from the cloud-based analyticsengine, the data presentation.

In some variations, one or more features disclosed herein including thefollowing features may optionally be included in any feasiblecombination. The scripting engine may execute the first programming codeon a first thread of the application. The in-app web browser may executethe second programming code on a second thread of the application. Thesecond thread may be a main thread of the application. The main threadof the application may be configured to render one or more userinterface elements of the application and respond to interactions withthe one or more user interface elements. The first thread may be abackground thread of the application. The first programming code may beexecuted on the background thread of the application instead of the mainthread of the application to at least prevent the application from beingrendered unresponsive due to the retrieval of the visualization data.

In some variations, the first programming code and the secondprogramming code may be executed on different threads to at least enablethe retrieval of the visualization data to be performed at leastpartially in parallel with the rendering of the data presentation.

In some variations, the application may be deployed at a mobile device.The scripting engine may be associated with a programming language thatis non-native to the mobile device. The mobile device may include asoftware development kit configured to provide an interface between thescripting engine and one or more components of the mobile deviceimplemented in a native programming language of the mobile device.

In some variations, the cloud-based analytics engine may be configuredto provide, to the mobile device, access to the data stored in thedatabase by at least providing, to the mobile device, the visualizationdata for rendering the data presentation.

In some variations, the scripting engine may include the firstprogramming code associated with the software widget and a thirdprogramming code associated with another software widget. The scriptingengine may be further configured to select for execution, based at leaston the request to load the data story that includes the software widgetbut not the other software widget, the first programming code and notthe third programming code.

In some variations, the first software widget may be a transientapplication and/or an auxiliary application.

In another aspect, there is provided a computer program product thatincludes a non-transitory computer readable storage medium. Thenon-transitory computer-readable storage medium may include program codethat causes operations when executed by at least one data processor. Theoperations may include: receiving, at an application, a request to loada data story, the data story including a software widget configured tocreate, based at least on a portion of data stored in a database coupledwith a cloud-based analytics engine, a data presentation providing avisual representation of at least the portion of data; in response tothe request to load the data story, executing, by a scripting engineassociated with the application, a first programming code associatedwith the software widget, the first programming code being executed toretrieve, from the cloud-based analytics engine, visualization data forrendering the data presentation; and executing, by an in-app web browserassociated with the application, a second programming code associatedwith the software widget, the second programming code being executed torender, based at least on the visualization data retrieved from thecloud-based analytics engine, the data presentation.

Implementations of the current subject matter can include, but are notlimited to, methods consistent with the descriptions provided herein aswell as articles that comprise a tangibly embodied machine-readablemedium operable to cause one or more machines (e.g., computers, etc.) toresult in operations implementing one or more of the described features.Similarly, computer systems are also described that may include one ormore processors and one or more memories coupled to the one or moreprocessors. A memory, which can include a non-transitorycomputer-readable or machine-readable storage medium, may include,encode, store, or the like one or more programs that cause one or moreprocessors to perform one or more of the operations described herein.Computer implemented methods consistent with one or more implementationsof the current subject matter can be implemented by one or more dataprocessors residing in a single computing system or multiple computingsystems. Such multiple computing systems can be connected and canexchange data and/or commands or other instructions or the like via oneor more connections, including, for example, to a connection over anetwork (e.g. the Internet, a wireless wide area network, a local areanetwork, a wide area network, a wired network, or the like), via adirect connection between one or more of the multiple computing systems,etc.

The details of one or more variations of the subject matter describedherein are set forth in the accompanying drawings and the descriptionbelow. Other features and advantages of the subject matter describedherein will be apparent from the description and drawings, and from theclaims. While certain features of the currently disclosed subject matterare described for illustrative purposes in relation to a graphic userinterface for accessing hierarchical data stored in a database, itshould be readily understood that such features are not intended to belimiting. The claims that follow this disclosure are intended to definethe scope of the protected subject matter.

DESCRIPTION OF DRAWINGS

The accompanying drawings, which are incorporated in and constitute apart of this specification, show certain aspects of the subject matterdisclosed herein and, together with the description, help explain someof the principles associated with the disclosed implementations. In thedrawings,

FIG. 1 depicts a system diagram illustrating a cloud-based analyticssystem, in accordance with some example embodiments;

FIG. 2A depicts a block diagram illustrating a runtime system, inaccordance with some example embodiments;

FIG. 2B depicts a block diagram illustrating a runtime system, inaccordance with some example embodiments;

FIG. 3 depicts a sequence diagram illustrating a process for retrievingvisualization data from a cloud-based analytics engine, in accordancewith some example embodiments;

FIG. 4 depicts a flowchart illustrating a process for accessing data ina database, in accordance with some example embodiments; and

FIG. 5 depicts a block diagram illustrating a computing system, inaccordance with some example embodiments.

When practical, similar reference numbers denote similar structures,features, or elements.

DETAILED DESCRIPTION

A cloud-based analytics engine may be configured to provide a variety offunctionalities for accessing data stored in a database. For example, auser at a client may request, via an application at the client, at leasta portion of the data stored in the database. To provide a visualrepresentation of at least the portion of the data stored in thedatabase, an in-app web browser at the client may load one or moresoftware widgets. Each software widget may be configured to retrievevisualization data from the cloud-based analytics engine and render,based at least on the visualization data, a corresponding datapresentation that provides a visual representation of the underlyingdata including, for example, a chart, a diagram, a table, a graph,and/or the like. Moreover, each software widget may be configured toenable further the user at the client to further modify the datapresentation, for example, by applying one or more filters to remove atleast a portion of the underlying data.

With some mobile operating systems, the in-app web browser may be forcedto load software widgets sequentially because function calls from thein-app web browser must be made from a main thread of the application.For instance, the in-app web browser may run a first software widget onthe main thread before running a second software widget on the mainthread. Accordingly, the first software widget may be required tocomplete the retrieval and rendering of a first visualization databefore the second software widget may commence the retrieval andrendering of a second visualization data. In some example embodiments,to eliminate this performance bottleneck, the retrieval of visualizationdata from the cloud-based analytics system may be uncoupled from therendering of the corresponding data presentation. For example, theweb-application may be deployed with a runtime system that includes ascripting engine configured to execute programming code associated withthe retrieval of visualization data from the cloud-based analyticsengine. Meanwhile, the rendering of the visualization data retrievedfrom the cloud-based analytics engine may continue to be performed bythe in-app web browser. As such, the retrieval of visualization data maybe delegated to one or more background threads of the application andperformed at least partially in parallel with the rendering of thevisualization data on the main thread of the application.

FIG. 1 depicts a system diagram illustrating a cloud-based analyticssystem 100, in accordance with some example embodiments. Referring toFIG. 1, the cloud-based analytics system 100 may include a cloud-basedanalytics engine 110, a client 120, and a database 140. As shown in FIG.1, the cloud-based analytics engine 110, the client 120, and thedatabase 140 may be communicatively coupled via a network 130. Thenetwork 130 may be any wired and/or wireless network including, forexample, a wide area network (WAN), a local area network (LAN), avirtual local area network (VLAN), a public land mobile network (PLMN),the Internet, and/or the like. Meanwhile, the database 140 may be anytype of database including, for example, a graph database, an in-memorydatabase, a relational database, a non-relational (NoSQL) database,and/or the like.

In some example embodiments, the client 120 may be any mobile deviceincluding, for example, a smartphone, a tablet computer, a wearableapparatus, and/or the like. However, it should be appreciated that theclient 120 may be any processor-based device including, for example, alaptop computer, a workstation, and/or the like. As FIG. 1 shows, theclient 120 may include an application 150. For example, the application150 may be a mobile application, which may be a type of applicationsoftware configured to run on a mobile device. Moreover, the application150 may be a web application configured to provide access, at the client120, to the cloud-based analytics engine 110.

The client 120 may interact with the cloud-based analytics engine 110 inorder to access data stored in the database 140. For example, a user atthe client 120 may send, via the application 150 at the client 120, arequest for at least a portion of the data stored at the database 140.In order to provide a visual representation of at least the portion ofthe data stored at the database 140, an in-app web browser 152 may beconfigured to load one or more software widgets. As used herein, an“in-app web browser” may refer to a web browser that is invoked througha corresponding application instead of being a standalone web browser.An in-app web browser such as, for example, the in-app web browser 152,may be used to directly embed web content such as, for example,visualization data retrieved form the cloud-based analytics engine,within an application (e.g., the application 150), without requiring theuse of a separate and/or standalone web browser. Meanwhile, the user atthe client 120 may interact with the one or more software widgets inorder to create, based on at least the portion of the data stored in thedatabase 140, data presentations including, for example, tables, charts,graphs, diagrams, and/or the like. As used herein, a software widget mayrefer to any transient and/or auxiliary application such as, forexample, a desk accessory (DA), an applet, and/or the like. Accordingly,the one or more software widgets may be configured to run concurrentlywithin a mobile desktop environment of the client 120 along with and/oras part of one or more other applications including, for example, theapplication 150.

In some example embodiments, the one or more software widgets may form adata story associated with at least the portion of the data stored atthe database 140. As used herein, a “data story” may refer to acollection of software widgets and the corresponding data presentationsthat are created using the software widgets to provide a visualrepresentation of at least the portion of the data stored in thedatabase 140. The data story may include at least one page that ispopulated by one or more data presentations, each of which providing avisual representation of at least a subset of the portion of dataassociated with the data story. For example, the user at the client 120may create the data story based on sales data stored in the database140. Accordingly, each page in the data story may correspond to salesdata for individual years while each data presentation in the data storymay provide a visual representation of at least a portion of the salesdata for a single year. For instance, one page in the data story maycorrespond to sales data for the year 2017 and the data presentationsthat are part of that page may include visual representations (e.g.,charts, graphs, tables, diagrams, and/or the like) of the sales data forthe year 2017. Alternatively and/or additionally, another page in thedata story may correspond to sales data for the year 2018 and the datapresentations populating that page may include visual representations(e.g., charts, graphs, tables, diagrams, and/or the like) of the salesdata for the year 2018.

Each software widget may be associated with programming code forretrieving visualization data from the cloud-based analytics engine 110.For instance, the visualization data retrieved from the cloud-basedanalytics engine 110 may be web content encoded using JavaScript ObjectNotation (JSON), Hypertext Markup Language (HTML), Extensible MarkupLanguage (XML), and/or the like. Furthermore, each software widget maybe associated with programming code for rendering a corresponding datapresentation including, for example, a chart, a graph, a table, adiagram, and/or the like. As used herein, the rendering of a datapresentation may refer to the generation and/or synthesis of an imagecontaining the data presentation, which may be displayed at the client120 as part of a graphic user interface (GUI).

According to some example embodiments, the programming code forretrieving and/or manipulating visualization data from the cloud-basedanalytics engine 110 may be semantically divided from the programmingcode for rendering a corresponding data presentation. For example, theprogramming code for retrieving and/or manipulating visualization datafrom the cloud-based analytics engine 110 may be packaged as individualrunner programs in a runtime system 154 associated with the application150. Doing so may enable the programming code for retrieving and/ormanipulating visualization data from the cloud-based analytics engine110 to be executed separately from the programming code for rendering acorresponding data presentation.

In some example embodiments, the application 150 may be deployed withthe runtime system 154, which may include a scripting engine configuredto execute the programming code for retrieving and/or manipulatingvisualization data from the cloud-based analytics engine 110. Thescripting engine may execute the programming code, which may be in ascripting language (e.g., JavaScript and/or the like) and thus does notrequire compilation prior to execution. Meanwhile, the programming codefor rendering the corresponding data representation may be executed bythe in-app web browser 152. Accordingly, the retrieval and/ormanipulation of visualization data from the cloud-based analytics engine110 may be run on a different thread than the rendering of acorresponding data representation. For instance, the retrieval and/ormanipulation of visualization data from the cloud-based analytics engine110 may be run on a background thread at the client 120 while therendering of the corresponding data representation may be run on a mainthread of the application 150.

In some example embodiments, visual data from the cloud-based analyticsengine 110 may be manipulated, for example, through formatting,combining multiple types of visualization data, and/or the like. Forexample, different types of visualization data corresponding to datapoints, colors, sizes, tooltips, and/or the like may be combined into asingle format that may subsequently be rendered at the client 120.Alternatively and/or additionally, the definition of a data story may bemodified such that these modifications are propagated to and/or affectsone or more software widgets included in the story.

A main thread may refer to a user interface (UI) thread, which may be atype of foreground thread. The main thread of the application 150 may becreated automatically by a launch of the application 150. Moreover, themain thread of the application 150 may be responsible for rendering oneor more user interface (UI) elements associated with the application 150and responding to interactions with the one or more user interfaceelements. As such, running a time consuming task such as, for example,the retrieval of visualization data from the cloud-based analyticsengine 110, on the main thread of the application 150 may render theapplication 150 unresponsive for an excessive length of time. Bycontrast, delegating the retrieval of visualization data to a backgroundthread of the application 150 may maintain the responsiveness of theapplication 150 while further enabling the retrieval and/or manipulationof visualization data to be performed at least partially in parallelwith the rendering of the corresponding data presentation.

FIGS. 2A-B depict block diagrams illustrating the runtime system 154, inaccordance with some example embodiments. Referring to FIGS. 2A-B, theruntime system 154 may include a scripting engine manager 220 configuredto maintain references to instances of a scripting engine 235 associatedwith the application 150. As shown in FIGS. 2A-B, the scripting enginemanager 220 may include a JavaScript context 230, which may include acollection of JavaScript components created at the application 150. Forexample, JavaScript context 230 may include a mock JavaScript 240, whichmay be a JavaScript component housing one or more mocked componentsnecessary for the correct processing of the JavaScript associated withthe application 150. Alternatively and/or additionally, as FIG. 2Bshows, the JavaScript context 230 may include the scripting engine 235as well as a runner program factory 250 storing one or more runnerprograms including, for example, a first runner program 255A, a secondrunner program 255B, a third runner program 255C, a fourth runnerprogram 255D, a fifth runner program 255E, and/or the like.

In some example embodiments, the user at the client 120 sending, via theapplication 150, the request for at least the portion of the data storedat the database 140 may trigger a call to a software development kit 210interfacing with the scripting engine 235. The software development kit210 may provide an interface between the native components of the client120 and the scripting engine 235, which may implement functionsimplemented in a non-native programming language. A software developmentkit worker 215 at the scripting engine 235 may provide an entry point tothe application programming interfaces (APIs) associated with the runnerprograms included in the runner program factory 250. The softwaredevelopment kit worker 215 may select and execute, based at least on therequest from the user at the client 120 for at least the portion of thedata in the database 140, one or more of the runner programs requiredfor fulfilling the request. For example, the user at the client 120 mayrequest to load a data story associated with at least a portion of thedata in the database 140. The data story may include one or moresoftware widgets for creating data presentations that provide visualrepresentations (e.g., charts, graphs, diagrams, tables, and/or thelike) of at least the portion of the data in the database 140.Accordingly, the software development kit worker 215 may select andexecute one or more runner programs corresponding to the softwarewidgets included in the data story.

Each runner program in the runner program factory 250 may includeprograming code for retrieving and/or manipulating visualization datafrom the cloud-based analytics engine 110. It should be appreciated thatthe runner programs may be implemented using a non-native programminglanguage (e.g., JavaScript) that differs from a native programminglanguage of the client 120 (e.g., Object C and/or C). The softwaredevelopment kit worker 215 may select and execute the one or more runnerprograms based at least on the type of data being retrieved from thecloud-based analytics engine 110 and/or the type of manipulation beingperformed on the data retrieved from the cloud-based analytics engine110. For example, the first runner program 255A may be configured toperform parallel queries for individual charts received from the client120 to expedite the rendering of the charts, the second runner program255B may be configured to transform metadata listing query results intochart user interface data, the third runner program 255C may beconfigured to responds to requests associated with a geo workflow (e.g.,on-demand retrieval and/or manipulation of visualization data), thefourth runner program 255D may be configured to perform logic todetermine a layout for the software widgets in a data story, and thefifth runner program 255E may be configured to handle requests to setand/or retrieve a current state of a data story.

As noted, in some example embodiments, the retrieval and/or manipulationof visualization data from the cloud-based analytics engine 110 may beperformed by the scripting engine 235 included in the runtime system 154while the rendering of the visualization data may be performed by thein-app web browser 152. Accordingly, the retrieval and/or themanipulation of visualization data may be run on a background thread ofthe application 150 at least partially in parallel with the rendering ofthe visualization data run on a main thread of the application 150.

Referring again to FIGS. 2A-B, the JavaScript context 230 may include acloud interface 262, which may include a query manager 265 configured togenerate the queries required for retrieving visualization data from thecloud-based analytics engine 110. The queries generated by the querymanager 265 at the cloud interface 262 may be passed to a networkrequest handler 264 at the scripting engine manager 220 before beingsent to a cache proxy 268. As shown in FIG. 2A, the cache proxy 268 maybe communicatively coupled with the cloud-based analytics engine 110.The cache proxy 268 may be configured to intercept and cache at leastsome of the visualization data retrieved from the cloud-based analyticsengine 110.

In some example embodiments, the visualization data retrieved from thecloud-based analytics engine 110 may be held by a content controller 270at the scripting engine 235. For example, the content controller 270 maystore the visualization data required for rendering one or more datapresentations forming a data story 272. Whereas the cache proxy 268stores raw visualization data retrieved from the cloud-based analyticsengine 110, the visualization data held by the content controller 270may be structured for rendering by the in-app web browser 152. As shownin FIG. 2B, the data story 272 may be a class that includes one or moreobjects and/or methods associated with a data story. For instance, FIG.2B shows the data story 272 as including a data story container 275,which may be a class of objects. The data story container 275 may storethe definition of a data story, which may represent the data story usingJavaScript Object Notation (JSON), Hypertext Markup Language (HTML),Extensible Markup Language (XML), and/or the like. Once the data story272 is loaded to the content controller 270, the runner programs in therunner program factory 250 may retrieve visualization data from thecontent controller 270 instead of from the cache proxy 268 and/or thecloud-based analytics engine 110.

Referring again to FIGS. 2A-B, the scripting engine 235 may include anative wrapper 280. In some example embodiments, the native wrapper 280may be configured to provide one or more additional functionalities tothe JavaScript context 230 by at least providing JavaScript applicationprogramming interfaces (APIs) for functionalities implemented in anative programming language of the client 120. For example, the nativewrapper 280 may provide natively implemented JavaScript applicationprogramming interfaces for loading a definition of a data story, loggingperformances, registering function timeout, unregistering functiontimeout, and/or broadcasting software widgets affected by a change in adefinition of a data story. As used herein, performance logging mayrefer a function that is used, for example, during development to log,at the client 120, the performance of the runtime system 154. Theregistering of a function timeout may be invoked to initiate a timerused to ensure that functions are performed within a certain timeframewhile the unregistering of a function timeout may be invoked to stop thetimer initiated by the invoking the registering of a function timeout.

Alternatively and/or additionally, the JavaScript context 230 may alsoinclude a native handler 285 configured to perform one or morefunctionalities of the JavaScript context 230 implemented in a nativeprogramming language of the client 120. As shown in FIG. 2B, the nativewrapper 280 may interface with the native handler 285, which may in turncommunicate directly with one or more native components 290 at theclient 120. For example, FIG. 2B shows the network request handler 264as being one of the one or more native components 290 of the client 120.Accordingly, the request from the user at the client 120 for at leastthe portion of the data stored in the database 140 may trigger a requestfrom one or more runner programs in the runner program factory 250 toretrieve corresponding visualization data from the cloud-based analyticsengine 110. The network request handler 264 may be configured to routethe request to retrieve visualization data from the cloud-basedanalytics engine 110, for example, to the cache proxy 268 and/or thecloud-based analytics engine 110.

To further illustrate, FIG. 3 depicts a sequence diagram illustrating aprocess 300 for retrieving visualization data from the cloud-basedanalytics engine 110, in accordance with some example embodiments. Asshown in FIG. 3, the user at the client 120 may send, via theapplication 150, a request for data from the database 140 to render achart. The user at the client 120 sending, via the application 150, therequest for data from the database 140 to render the chart may trigger acall to the software development kit 210. The software development kit210 may dispatch the request to the scripting engine manager 220, whichmay further dispatch the request to the JavaScript context 230. Thesoftware development kit worker 215 in the scripting engine 235 of theJavaScript context 230 may select and execute, based at least on therequest, one or more of the runner programs in the runner programfactory 250.

In the example shown in FIG. 3, the software development kit worker 215may select and execute the first runner program 255A, which may includeprogramming code for retrieving data for rendering a chart. Executingthe first runner program 255A may trigger a call (e.g.,GetConsumptionModel) to the cloud interface 262. In turn, the querymanager 265 may generate one or more queries configured to retrieve,from the cloud-based analytics engine 110, the data from the database140 for rendering the chart. For example, the query manager 265 maygenerate a query (e.g., GetResponse), which may be dispatched to thenetwork request handler 264 at the client 120. As shown in FIG. 3, thenetwork request handler 264 may further route the query from the querymanager 265 to the cache proxy 268 which, as noted, may store data(e.g., raw visualization data) retrieved from the cloud-based analyticsengine 110. In the event the data for rendering the chart requested bythe user at the client 120 is not present in the cache proxy 268, thecache proxy 268 may retrieve the data from the cloud-based analyticsengine 110 before returning the data to the network request handler 264.

Referring again to FIG. 3, once the cache proxy 268 returns the data forrendering the chart to the network request handler 264, the data may befurther returned to the first runner program 255A via the query manager265 and the cloud interface 262. Furthermore, the first runner program255A may return the data to the software development kit 210 through theJavaScript context 230 and the scripting engine manager 220. As noted,the software development kit 210 may be configured to provide aninterface between the native components of the client 120 and thescripting engine 235 that implement functions, such as the first runnerprogram 255A, implemented in a non-native programming language.Accordingly, the data for rendering the chart retrieved by executing thefirst runner program 255A may be routed through the software developmentkit 210 to the in-app web browser 152 for rendering.

In some example embodiments, the in-app web browser 152 may render,based on the data retrieved from the cloud-based analytics engine 110, acorresponding chart providing a visual representation of the underlyingdata. This rendering may be run on a main thread of the application 150whereas the retrieval and/or the manipulation of the data from thecloud-based analytics engine 110 may be run on a background thread ofthe application 150. Running the retrieval and/or manipulation of dataon a separate thread than the rendering of the corresponding datapresentation may enable the retrieval and/or manipulation of data to beperformed at least partially in parallel with the rendering of thecorresponding data presentation.

FIG. 4 depicts a flowchart illustrating a process 400 for accessing datain the database 140, in accordance with some example embodiments.Referring to FIGS. 1, 2A-B, and 3-4, the process 400 may be performed atthe client 120, for example, to retrieve and/or manipulate visualizationdata from the cloud-based analytics engine 110 and to render, based atleast on the visualization data, a corresponding data presentation.

At 402, the application 150 may receive, from a user at the client 120,a request to load a data story including a software widget for creating,based on at least a portion of data stored in the database 140 coupledwith the cloud-based analytics engine 110, a data presentation providinga visual representation of at least the portion of the data stored inthe database. For example, the user at the client 120 may send, via theapplication 150, a request to load a data story associated with salesdata stored in the database 140. In this example, the data story mayinclude one or more software widgets for creating data presentations(e.g., charts, graphs, tables, diagrams, and/or the like) correspondingto at least a subset of the sales data stored in the database 140. Forinstance, the data story may include a software widget for creating achart that provides a visual representation of at least a portion of thesales data from the year 2017. Alternatively and/or additionally, thedata story may include a software widget for creating a graph thatprovides a visual representation of at least a portion of the sales datafrom the year 2018.

At 404, the scripting engine 235 included in the runtime system 154 ofthe application 150 may execute, in response to the request to load thedata story, a first programming code associated with the software widgetfor retrieving and/or manipulating visualization data from thecloud-based analytics engine 110 for rendering the data presentation. Insome example embodiments, the programming code for retrieving and/ormanipulating visualization data from the cloud-based analytics engine110 may be semantically divided from the programming code for renderinga corresponding data presentation. Moreover, as FIGS. 2A-B show, theprogramming code for retrieving and/or manipulating visualization datafrom the cloud-based analytics engine 110 may be packaged as individualrunner programs in the runtime system 154 deployed with the application150. Accordingly, the software development kit worker 215 at thescripting engine 235 may respond to the request to load the data storyby at least selecting one or more runner programs for retrieving, fromthe cloud-based analytics engine 110, the corresponding visualizationdata.

In some example embodiments, the scripting engine 235 may execute one ormore runner programs for retrieving and/or manipulating visualizationdata from the cloud-based analytics engine 110. The runner programs maybe executed on a different thread than the rendering of thecorresponding data representation. For example, the retrieval and/ormanipulation of visualization data from the cloud-based analytics engine110 may be run on a background thread of the application 150 while therendering of the corresponding data presentation may be run on a mainthread of the application 150. As noted, the main thread of theapplication 150 may be responsible for maintaining the responsiveness ofthe application 150. As such, running the retrieval and/or manipulatingof visualization data on a background thread of the application 150 mayincrease the responsiveness of the application 150 by at leastpreventing the main thread of the application 150 from being occupiedwith excessively time-consuming tasks.

At 406, the in-app web browser 152 of the application 150 may execute,in response to the request to load the data story, a second programmingcode associated with the software widget for rendering, based at leaston the visualization data retrieved from the cloud-based analyticsengine 110, the data presentation. In some example embodiments, therendering of a data presentation based on visualization data retrievedfrom the cloud-based analytics engine 110 may be performed by the in-appweb browser 152 of the application 150. The rendering of the datapresentation associated with a software widget may continue to beperformed on the main thread of the application 150 as the main threadof the application 150 is responsible for rendering one or more userinterface (UI) elements associated with the application 150.

For example, the scripting engine 235 in the runtime system 154 of theapplication 150 may execute, on a background thread of the application150, programming code for retrieving and/or manipulating visualizationdata from the cloud-based analytics engine 110. Meanwhile, the in-appweb browser 152 may execute, on the main thread of the application 150,programing code for rendering the corresponding data presentation. Asnoted, running the retrieval and/or manipulation of visualization dataon a different thread than the rendering of the corresponding datapresentation may enable the retrieval and/or manipulation ofvisualization data to be performed at least partially in parallel withthe rendering of the corresponding data presentation.

FIG. 5 depicts a block diagram illustrating a computing system 500consistent with implementations of the current subject matter. Referringto FIGS. 1 and 5, the computing system 500 can be used to implement thecloud-based analytics engine 110, the client 120, and/or any componentstherein.

As shown in FIG. 5, the computing system 500 can include a processor510, a memory 520, a storage device 530, and an input/output device 540.The processor 510, the memory 520, the storage device 530, and theinput/output device 540 can be interconnected via a system bus 550. Theprocessor 510 is capable of processing instructions for execution withinthe computing system 500. Such executed instructions can implement oneor more components of, for example, the cloud-based analytics engine 110and/or the client 120. In some example embodiments, the processor 510can be a single-threaded processor. Alternately, the processor 510 canbe a multi-threaded processor. The processor 510 is capable ofprocessing instructions stored in the memory 520 and/or on the storagedevice 530 to display graphical information for a user interfaceprovided via the input/output device 540.

The memory 520 is a computer readable medium such as volatile ornon-volatile that stores information within the computing system 500.The memory 520 can store data structures representing configurationobject databases, for example. The storage device 530 is capable ofproviding persistent storage for the computing system 500. The storagedevice 530 can be a floppy disk device, a hard disk device, an opticaldisk device, a tape device, a solid-state device, and/or other suitablepersistent storage means. The input/output device 540 providesinput/output operations for the computing system 500. In some exampleembodiments, the input/output device 540 includes a keyboard and/orpointing device. In various implementations, the input/output device 540includes a display unit for displaying graphical user interfaces.

According to some example embodiments, the input/output device 540 canprovide input/output operations for a network device. For example, theinput/output device 540 can include Ethernet ports or other networkingports to communicate with one or more wired and/or wireless networks(e.g., a local area network (LAN), a wide area network (WAN), theInternet).

In some example embodiments, the computing system 500 can be used toexecute various interactive computer software applications that can beused for organization, analysis and/or storage of data in variousformats. Alternatively, the computing system 500 can be used to executeany type of software applications. These applications can be used toperform various functionalities, e.g., planning functionalities (e.g.,generating, managing, editing of spreadsheet documents, word processingdocuments, and/or any other objects, etc.), computing functionalities,communications functionalities, etc. The applications can includevarious add-in functionalities or can be standalone computing productsand/or functionalities. Upon activation within the applications, thefunctionalities can be used to generate the user interface provided viathe input/output device 540. The user interface can be generated andpresented to a user by the computing system 500 (e.g., on a computerscreen monitor, etc.).

One or more aspects or features of the subject matter described hereincan be realized in digital electronic circuitry, integrated circuitry,specially designed ASICs, field programmable gate arrays (FPGAs)computer hardware, firmware, software, and/or combinations thereof.These various aspects or features can include implementation in one ormore computer programs that are executable and/or interpretable on aprogrammable system including at least one programmable processor, whichcan be special or general purpose, coupled to receive data andinstructions from, and to transmit data and instructions to, a storagesystem, at least one indication device, and at least one output device.The programmable system or computing system may include clients andservers. A client and server are generally remote from each other andtypically interact through a communication network. The relationship ofclient and server arises by virtue of computer programs running on therespective computers and having a client-server relationship to eachother.

These computer programs, which can also be referred to as programs,software, software applications, applications, components, or code,include machine instructions for a programmable processor, and can beimplemented in a high-level procedural and/or object-orientedprogramming language, and/or in assembly/machine language. As usedherein, the term “machine-readable medium” refers to any computerprogram product, apparatus and/or device, such as for example magneticdiscs, optical disks, memory, and Programmable Logic Devices (PLDs),used to provide machine instructions and/or data to a programmableprocessor, including a machine-readable medium that receives machineinstructions as a machine-readable signal. The term “machine-readablesignal” refers to any signal used to provide machine instructions and/ordata to a programmable processor. The machine-readable medium can storesuch machine instructions non-transitorily, such as for example as woulda non-transient solid-state memory or a magnetic hard drive or anyequivalent storage medium. The machine-readable medium can alternativelyor additionally store such machine instructions in a transient manner,such as for example, as would a processor cache or other random accessmemory associated with one or more physical processor cores.

To provide for interaction with a user, one or more aspects or featuresof the subject matter described herein can be implemented on a computerhaving a display device, such as for example a cathode ray tube (CRT) ora liquid crystal display (LCD) or a light emitting diode (LED) monitorfor displaying information to the user and a keyboard and a pointingdevice, such as for example a mouse or a trackball, by which the usermay provide indication to the computer. Other kinds of devices can beused to provide for interaction with a user as well. For example,feedback provided to the user can be any form of sensory feedback, suchas for example visual feedback, auditory feedback, or tactile feedback;and indication from the user may be received in any form, includingacoustic, speech, or tactile indication. Other possible indicationdevices include touch screens or other touch-sensitive devices such assingle or multi-point resistive or capacitive track pads, voicerecognition hardware and software, optical scanners, optical pointers,digital image capture devices and associated interpretation software,and the like.

In the descriptions above and in the claims, phrases such as “at leastone of” or “one or more of” may occur followed by a conjunctive list ofelements or features. The term “and/or” may also occur in a list of twoor more elements or features. Unless otherwise implicitly or explicitlycontradicted by the context in which it used, such a phrase is intendedto mean any of the listed elements or features individually or any ofthe recited elements or features in combination with any of the otherrecited elements or features. For example, the phrases “at least one ofA and B;” “one or more of A and B;” and “A and/or B” are each intendedto mean “A alone, B alone, or A and B together.” A similarinterpretation is also intended for lists including three or more items.For example, the phrases “at least one of A, B, and C;” “one or more ofA, B, and C;” and “A, B, and/or C” are each intended to mean “A alone, Balone, C alone, A and B together, A and C together, B and C together, orA and B and C together.” Use of the term “based on,” above and in theclaims is intended to mean, “based at least in part on,” such that anunrecited feature or element is also permissible.

The subject matter described herein can be embodied in systems,apparatus, methods, and/or articles depending on the desiredconfiguration. The implementations set forth in the foregoingdescription do not represent all implementations consistent with thesubject matter described herein. Instead, they are merely some examplesconsistent with aspects related to the described subject matter.Although a few variations have been described in detail above, othermodifications or additions are possible. In particular, further featuresand/or variations can be provided in addition to those set forth herein.For example, the implementations described above can be directed tovarious combinations and subcombinations of the disclosed featuresand/or combinations and subcombinations of several further featuresdisclosed above. In addition, the logic flows depicted in theaccompanying figures and/or described herein do not necessarily requirethe particular order shown, or sequential order, to achieve desirableresults. Other implementations may be within the scope of the followingclaims.

What is claimed is:
 1. A system, comprising: at least one dataprocessor; and at least one memory storing instructions which, whenexecuted by the at least one data processor, result in operationscomprising: receiving, at an application, a request to load a datastory, the data story including a software widget configured to create,based at least on a portion of data stored in a database coupled with acloud-based analytics engine, a data presentation providing a visualrepresentation of at least the portion of data; in response to therequest to load the data story, executing, by a scripting engineassociated with the application, a first programming code associatedwith the software widget, the first programming code being executed toretrieve, from the cloud-based analytics engine, visualization data forrendering the data presentation; and executing, by an in-app web browserassociated with the application, a second programming code associatedwith the software widget, the second programming code being executed torender, based at least on the visualization data retrieved from thecloud-based analytics engine, the data presentation.
 2. The system ofclaim 1, wherein the scripting engine executes the first programmingcode on a first thread of the application, and wherein the in-app webbrowser executes the second programming code on a second thread of theapplication.
 3. The system of claim 2, wherein the second threadcomprises a main thread of the application, and wherein the main threadof the application is configured to render one or more user interfaceelements of the application and respond to interactions with the one ormore user interface elements.
 4. The system of claim 3, wherein thefirst thread comprises a background thread of the application, andwherein the first programming code is executed on the background threadof the application instead of the main thread of the application to atleast prevent the application from being rendered unresponsive due tothe retrieval of the visualization data.
 5. The system of claim 2,wherein the first programming code and the second programming code areexecuted on different threads to at least enable the retrieval of thevisualization data to be performed at least partially in parallel withthe rendering of the data presentation.
 6. The system of claim 1,wherein the application is deployed at a mobile device, wherein thescripting engine is associated with a programming language that isnon-native to the mobile device, and wherein the mobile device includesa software development kit configured to provide an interface betweenthe scripting engine and one or more components of the mobile deviceimplemented in a native programming language of the mobile device. 7.The system of claim 1, wherein the cloud-based analytics engine isconfigured to provide, to the mobile device, access to the data storedin the database by at least providing, to the mobile device, thevisualization data for rendering the data presentation.
 8. The system ofclaim 1, wherein the scripting engine include the first programming codeassociated with the software widget and a third programming codeassociated with another software widget, and wherein the scriptingengine is further configured to select for execution, based at least onthe request to load the data story that includes the software widget butnot the other software widget, the first programming code and not thethird programming code.
 9. The system of claim 1, wherein the firstsoftware widget comprises a transient application and/or an auxiliaryapplication.
 10. The system of claim 1, wherein the visualization dataretrieved from the cloud-based analytics engine is encoded in JavaScriptObject Notation (JSON), Hypertext Markup Language (HTML), and/orExtensible Markup Language (XML).
 11. A computer-implemented method,comprising: receiving, at an application, a request to load a datastory, the data story including a software widget configured to create,based at least on a portion of data stored in a database coupled with acloud-based analytics engine, a data presentation providing a visualrepresentation of at least the portion of data; in response to therequest to load the data story, executing, by a scripting engineassociated with the application, a first programming code associatedwith the software widget, the first programming code being executed toretrieve, from the cloud-based analytics engine, visualization data forrendering the data presentation; and executing, by an in-app web browserassociated with the application, a second programming code associatedwith the software widget, the second programming code being executed torender, based at least on the visualization data retrieved from thecloud-based analytics engine, the data presentation.
 12. The method ofclaim 11, wherein the scripting engine executes the first programmingcode on a first thread of the application, and wherein the in-app webbrowser executes the second programming code on a second thread of theapplication.
 13. The method of claim 12, wherein the second threadcomprises a main thread of the application, and wherein the main threadof the application is configured to render one or more user interfaceelements of the application and respond to interactions with the one ormore user interface elements.
 14. The method of claim 13, wherein thefirst thread comprises a background thread of the application, andwherein the first programming code is executed on the background threadof the application instead of the main thread of the application to atleast prevent the application from being rendered unresponsive due tothe retrieval of the visualization data.
 15. The method of claim 12,wherein the first programming code and the second programming code areexecuted on different threads to at least enable the retrieval of thevisualization data to be performed at least partially in parallel withthe rendering of the data presentation.
 16. The method of claim 11,wherein the application is deployed at a mobile device, wherein thescripting engine is associated with a programming language that isnon-native to the mobile device, and wherein the mobile device includesa software development kit configured to provide an interface betweenthe scripting engine and one or more components of the mobile deviceimplemented in a native programming language of the mobile device. 17.The method of claim 11, wherein the cloud-based analytics engine isconfigured to provide, to the mobile device, access to the data storedin the database by at least providing, to the mobile device, thevisualization data for rendering the data presentation.
 18. The methodof claim 11, wherein the scripting engine include the first programmingcode associated with the software widget and a third programming codeassociated with another software widget, and wherein the scriptingengine is further configured to select for execution, based at least onthe request to load the data story that includes the software widget butnot the other software widget, the first programming code and not thethird programming code.
 19. The method of claim 11, wherein the firstsoftware widget comprises a transient application and/or an auxiliaryapplication.
 20. A non-transitory computer-readable medium storinginstructions, which when executed by at least one data processor, resultin operations comprising: receiving, at an application, a request toload a data story, the data story including a software widget configuredto create, based at least on a portion of data stored in a databasecoupled with a cloud-based analytics engine, a data presentationproviding a visual representation of at least the portion of data; inresponse to the request to load the data story, executing, by ascripting engine associated with the application, a first programmingcode associated with the software widget, the first programming codebeing executed to retrieve, from the cloud-based analytics engine,visualization data for rendering the data presentation; and executing,by an in-app web browser associated with the application, a secondprogramming code associated with the software widget, the secondprogramming code being executed to render, based at least on thevisualization data retrieved from the cloud-based analytics engine, thedata presentation.